
package com.shangsi.config;

import com.alibaba.csp.sentinel.annotation.aspectj.SentinelResourceAspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 如果是springcloudalibaba项目则无需此配置
 * @author dzd
 * @date 2021-12-14
 */
@Configuration
@EnableAsync
public class SentinelResourceConfig {

    @Bean
    public SentinelResourceAspect sentinelResourceAspect() {
        return new SentinelResourceAspect();
    }
}
